﻿#region Usings

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.IO;
using System.Runtime.Serialization;
using xConnected.Common;

#endregion

namespace xConnected.Core.Model
{
    [Serializable]
    [DataContract]
    [DisplayColumn("Name")]
    public class PositionList : PersistentEntity
    {
        public PositionList()
        {
            Positions = new List<Position>();
            IsBlackList = false;
        }

        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public bool IsBlackList { get; set; }

        [DataMember]
        public User Owner { get; set; }

        [DataMember]
        public int OwnerId { get; set; }

        [DataMember]
        public virtual IList<Position> Positions { get; set; }
    }
}